Data Structures (1/1)
What are the common built-in data types in Python?
    Although, Python doesn't require data types to be defined explicitly during variable declarations type errors are likely to occur if the knowledge of data types and their compatibility with each other are neglected. Python provides type() and isinstance() functions to check the type of these variables.
    • None keyword represents the null values in Python. Boolean equality operation can be performed using these NoneType objects.
    • There are three distinct numeric types - integers, floating-point numbers, and complex numbers. Additionally, booleans are a sub-type of integers.
    • Sequence Types: According to Python Docs, there are three basic Sequence Types - lists, tuples, and range objects. Sequence types have the in and not in operators defined for their traversing their elements. These operators share the same priority as the comparison operations.
    • Text strings such as str
    • Binary data such as bytearray bytes memoryview